package com.oa.cc.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.oa.domain.Message;

public class MessageDaoImpl extends HibernateDaoSupport implements MessageDao {

	public void saveMessage(Message message) {
		getSession().save(message);
	}

	public List<Message> getMessagesByEmpno(Long empno) {
		return getSession().createQuery("from Message where getEmpno="+empno).list();
	}
	
}
